package o;

import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;

public class aya {
    private static final aya ॱ = new aya();
    private final ConcurrentHashMap<String, ayd> ˎ = new ConcurrentHashMap();

    private aya() {
    }

    public static aya ˎ() {
        return ॱ;
    }

    public static String ˏ(Object obj) {
        return obj.getClass().getName() + obj.hashCode();
    }

    public void ˎ(String str, ayd o_ayd) {
        awg.ˎ.ˋ("ProtocolTrigger", "registerObserver, key = " + str);
        this.ˎ.put(str, o_ayd);
    }

    public void ˎ(String str) {
        awg.ˎ.ˋ("ProtocolTrigger", "unregisterObserver, key = " + str);
        this.ˎ.remove(str);
    }

    public void ˋ(String str, int i, boolean z) {
        awg.ˎ.ˋ("ProtocolTrigger", "notifyResult, dialogId = " + str + " action = " + i + " result = " + z);
        for (Entry value : this.ˎ.entrySet()) {
            ayd o_ayd = (ayd) value.getValue();
            if (o_ayd != null) {
                o_ayd.ˎ(str, i, z);
            }
        }
    }
}
